import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { CommandModule } from 'nestjs-command';
import { DatabaseSeeder } from './seeds/init.seed';
import { SeedCommand } from './seeds/seed.command';
import { Workflow, WorkflowSchema } from '../workflow/schemas/workflow.schema';
import { Preset, PresetSchema } from '../templates/presets/schemas/preset.schema';

@Module({
  imports: [
    CommandModule,
    MongooseModule.forFeature([
      { name: Workflow.name, schema: WorkflowSchema },
      { name: Preset.name, schema: PresetSchema }
    ])
  ],
  providers: [DatabaseSeeder, SeedCommand],
  exports: [DatabaseSeeder]
})
export class DatabaseModule { } 